package com.neudu.yiyang.mapper;

import com.neudu.yiyang.pojo.Bed;
import com.neudu.yiyang.pojo.Beddetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 16462
* @description 针对表【beddetails】的数据库操作Mapper
* @createDate 2025-03-31 21:56:23
* @Entity com.neudu.yiyang.pojo.Beddetails
*/
@Mapper
public interface BeddetailsMapper extends BaseMapper<Beddetails> {
    List<Beddetails> selectByKeyword(String keyword);

    List<Beddetails> selectAll();


    List<Beddetails> selectByCustomerId(Integer customerId);

    List<Bed> selectAvailableBeds();

    Beddetails selectById(@Param("id") Integer id);
    int updateBedId(@Param("id") Integer id, @Param("bedId") Integer bedId);

}




